package com.lcy.accumulation.export.setting;

/**
 * <p>创建时间：2017-5-23 11:05</p>
 *
 * @author 娄存银
 * @version 1.0
 */
public class ExportStyle {
    private String dateFormat;

    private ExportStyle() {
    }

    private ExportStyle(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public static ExportStyle getInstance(String dateFormatter){
        if(dateFormatter == null || dateFormatter.isEmpty()){
            return null;
        }
        return new ExportStyle(dateFormatter);
    }
}
